<?php $get  = $_GET; arr::remove('page',$get); if($count = count($meta_info) OR !empty($get)){ $feedback_type = Kohana::config('site.feedback_type'); $feedback_status = Kohana::config('site.feedback_status'); ?>
<table>
	<tr>
		<th class="t1">
		<div class="dropdown <?php if(isset($_GET['vote'])){echo 'seleted';} ?>"><p>票数 <span>▼ </span></p>
			<ul class="hide"><li><a href="<?php echo url::site().'?vote=down'; ?>">高->低</a></li></ul>
		</div>
		</th>
		<th class="t2">
		<div class="dropdown <?php if(isset($_GET['type'])){echo 'seleted';} ?>"><p>类型 <span>▼ </span></p>
			<ul class="hide">
				<?php foreach($feedback_type as $i=>$type){
					echo '<li><a href="'.url::site().'?type='.$i.'">'.$type.'</a></li>';
				}
				?>
			</ul>
		</div>
		</th>
		<th class="t3">标题</th>
		<th class="t4">
		<div class="dropdown <?php if(isset($_GET['status'])){echo 'seleted';} ?>"><p>状态 <span>▼ </span></p>
			<ul class="hide">
				<?php foreach($feedback_status as $i=>$status){
					echo '<li><a href="'.url::site().'?status='.$i.'">'.$status.'</a></li>';
				}
				?>
			</ul>
		</th>
		<th class="t5">发布时间</td>
	</tr>
<?php if($count){ for($i=0;$i<$count;$i++) { ?>
	<tr <?php if(user::active()->login) {if(user::get_user()->email == $meta_info[$i]['email']){echo 'style="background:#f4f4f4"';}} ?>>
		<td><?php echo $meta_info[$i]['vote']; ?></td>
		<td><?php echo $feedback_type[$meta_info[$i]['type']]; ?></td>
		<td><?php echo html::anchor('article/detail/'.$meta_info[$i]['id'],$meta_info[$i]['title']); ?></td>
		<td><?php echo $feedback_status[$meta_info[$i]['status']]; ?></td>
		<td><?php echo date::format($meta_info[$i]['pubdate']); ?></td>
	</tr>
<?php } echo '</table>';?>
<?php } else { echo '</table><p style="padding:15px 0">没有找到相关反馈</p>';} } else {
	echo '暂无反馈';
} ?>
<?php echo $pagination; ?>
